<div id="modules_enabled">
  <h3> Currently Enabled Modules </h3>


  <% @modules.each do |mod| %>
    <p>
      [input] <%= mod.input.name %><br />
      [output] <%= mod.output.name %><br/>
      <%= link_to "Edit", :controller => "inputs", :action => "configure", :id => mod.input.input_id, :output => mod.output.output_id, :module => mod.id %> | <%= link_to "Delete", mod, :confirm => "Are you sure?", :method => :delete %>
    </p>
  <% end %>

</div>

<div id="user_messages">
  <h3> Your Message History </h3>
  <% @messages.each do |m| %>
    <p>
      Sent from: <%= m.input.name %><br/>
      Sent to: <%= m.output.name %><br/>
      Message: <%= m.long_message %><br />
      <i><%#= "#{time_ago_in_words(m.timestamp)} ago"%></i>
    </p>
  <% end %>
</div>